<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 
 * @property string $name 
 * @property string $content 
 * @property int $user_id 
 * @property int $read_count 
 * @property int $praise_count 
 * @property int $comment_count 
 * @property int $add_time 
 * @property int $class_id 
 * @property int $n_id 
 * @property int $status 
 */
class Article extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'article';

    public bool $timestamps = false;

    /**
     * The attributes that are mass assignable.
     */
    // protected array $fillable = [];

    protected array $guarded = ['id'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'read_count' => 'integer', 'praise_count' => 'integer', 'comment_count' => 'integer', 'add_time' => 'integer', 'class_id' => 'integer', 'n_id' => 'integer', 'status' => 'integer'];
}
